package io.kiki.task.server.common.enums;

import akka.actor.ActorRef;
import io.kiki.task.server.common.akka.ActorGenerator;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.function.Supplier;

@AllArgsConstructor
@Getter
public enum SyetemTaskTypeEnum {
    RETRY(1, ActorGenerator::scanGroupActor),
    CALLBACK(2, ActorGenerator::scanCallbackGroupActor),
    JOB(3, ActorGenerator::scanJobActor),
    WORKFLOW(4, ActorGenerator::scanWorkflowActor),
    ;


    private final Integer type;
    private final Supplier<ActorRef> actorRef;

}
